import { createRouter, createWebHistory } from 'vue-router'

import Navigation_Page from '@/views/Navigation_Page.vue'
import Index_Page from '@/views/Index_Page.vue'
import BOT_Page from '@/views/BOT_Page.vue'
import OverAll_Page from '@/views/OverAll_Page.vue'
import End_Page from '@/views/End_Page.vue'
import Pre_Page from '@/views/Pre_Page.vue'
import Android_Page from '@/views/Android_Page.vue'
import iOS_Page from '@/views/iOS_Page.vue'
import People_Page from '@/views/People_Page.vue'
import DevTool_Page from '@/views/DevTool_Page.vue'
import CodeLive_Page from '@/views/CodeLive_Page.vue'
import Read_Page from '@/views/Read_Page.vue'
import attention_Page from '@/views/attention_Page.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/Navigation_Page',
      name: '/Navigation_Page',
      component: Navigation_Page,
      redirect: '/Index_Page',
      children: [
        {
          path: '/Index_Page',
          name: '/Index_Page',
          component: Index_Page,
          redirect: '/End_Page',
          children: [
            {
              path: '/OverAll_Page',
              name: '/OverAll_Page',
              component: OverAll_Page
            },
            {
              path: '/End_Page',
              name: '/End_Page',
              component: End_Page
            },
            {
              path: '/Pre_Page',
              name: '/Pre_Page',
              component: Pre_Page
            },
            {
              path: '/Android_Page',
              name: '/Android_Page',
              component: Android_Page
            },
            {
              path: '/iOS_Page',
              name: '/iOS_Page',
              component: iOS_Page
            },
            {
              path: '/People_Page',
              name: '/People_Page',
              component: People_Page
            },
            {
              path: '/DevTool_Page',
              name: '/DevTool_Page',
              component: DevTool_Page
            },
            {
              path: '/CodeLive_Page',
              name: '/CodeLive_Page',
              component: CodeLive_Page
            },
            {
              path: '/Read_Page',
              name: '/Read_Page',
              component: Read_Page
            },
            {
              path: '/attention_Page',
              name: '/attention_Page',
              component: attention_Page
            }
          ]
        },

        {
          path: '/BOT_Page',
          name: '/BOT_Page',
          component: BOT_Page
        },
      ]
    },


  ],
})

export default router
